Skip to content

ref(issues) cmdk actions#112564

Closed
JonasBa wants to merge 7 commits into
jb/cmdk/jsx-pocfrom
jb/cmdk/issues-cmdk
Closed

ref(issues) cmdk actions#112564
JonasBa wants to merge 7 commits into
jb/cmdk/jsx-pocfrom
jb/cmdk/issues-cmdk

Conversation

@JonasBa

@JonasBa JonasBa commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Superseded by split PRs based on jb/cmdk/jsx-poc:

Closing this PR to make review easier and keep the remaining changes focused.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 9, 2026
JonasBa and others added 2 commits April 9, 2026 06:56
Previously, SlotConsumer fell back to rendering children in-place when
no outlet element was registered. This caused two problems: a flash of
content at the wrong DOM position before the portal teleported it to
the outlet, and a React subtree remount (in-place ReactNode vs
ReactPortal are different element types) that reset useId() keys on
every outlet mount/unmount cycle.

Render null instead, so content only appears once the outlet is ready
and component identity is preserved across outlet lifecycle changes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
If allInQuerySelected is already true, calling toggleSelectAllVisible()
followed by setAllInQuerySelected(true) would deselect everything then
immediately re-select it — two unnecessary state updates. Guard the
action so it is a no-op when the full query is already selected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
JonasBa and others added 3 commits April 9, 2026 07:31
Register CMDK actions for the issues feed: select all + bulk actions
(resolve, archive, set priority, merge) and individual issue actions
for each visible issue in the list.
Co-Authored-By: Claude <noreply@anthropic.com>
Move ErrorLevel indicator into the label alongside the title, drop the
separate level text from details, shrink title to sm and details to xs,
add paddingBottom to the label for breathing room, and use getTextValue
when pushing nav-stack entries so rich ReactNode labels produce correct
placeholder text.
Co-Authored-By: Claude <noreply@anthropic.com>
@JonasBa

JonasBa commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #112568 and #112567.

@JonasBa JonasBa closed this Apr 9, 2026
JonasBa added a commit that referenced this pull request Apr 9, 2026
Render slot consumer content only after an outlet element is available.

Previously the slot consumer rendered its children in place until the
outlet mounted, then switched over to a portal. That caused a flash of
content at the wrong DOM position and changed the rendered element type
under React, which reset component identity across outlet lifecycle
changes.

This makes the consumer return `null` until the outlet is ready and
updates the slot tests to match that behavior.

Refs GH-112564

Co-authored-by: OpenAI Codex <noreply@openai.com>
JonasBa added a commit that referenced this pull request Apr 16, 2026
Enable CMDK to perform issue actions similar to the ones exposed in the
UI.

A couple things missing:
- Resolve until (not clear even from our current UI about what the
default is)
- Archive until (same as above)

I left the above not implemented for I'm not sure what a good way to
expose non default resolve or archive would be. We can force everyone to
explicitly select the default, whichever it is, but my gut sense
(pending amplitude verification) tells me that we'd end up just adding
extra friction for a large majority of the actions while only enabling a
few edge cases (tldr, I'm not sure its worth it or how to expose it
without that tradeoff)


https://github.com/user-attachments/assets/3be56146-4898-409e-a70d-73af8e5caae2



Refs GH-112564

---------

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Jonas <JonasBa@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Codex <codex@openai.com>
JonasBa added a commit that referenced this pull request Apr 21, 2026
Add top current project settings specific CMDK entries that allow enable
quick navigation between the different project settings pages for a
given project. These will only be visible if the user is on one of the
project settings pages.

<img width="1280" height="774" alt="CleanShot 2026-04-14 at 14 43 19@2x"
src="https://github.com/user-attachments/assets/b921572f-6b7a-4e89-ad54-16026c251212"
/>

<img width="1278" height="442" alt="CleanShot 2026-04-14 at 14 43 14@2x"
src="https://github.com/user-attachments/assets/adf57500-8bc6-4a4f-bb89-cd16e31a79e8"
/>


Refs GH-112564

---------

Co-authored-by: OpenAI Codex <noreply@openai.com>
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant